#include <partical/ParticleAffector.h>

namespace ne
{
    ParticleAffector::ParticleAffector(const std::string &type)
        : mAffectorType(type),
          mEnable(true)
    {
    }

    ParticleAffector::ParticleAffector(const ParticleAffector &affector)
        : mAffectorType(affector.mAffectorType),
          mEnable(affector.mEnable)
    {
    }

    const std::string& ParticleAffector::getAffectorType() const
    {
        return mAffectorType;
    }

    void ParticleAffector::setEnable(const bool b)
    {
        mEnable = b;
    }

    void ParticleAffector::enable()
    {
        setEnable(true);
    }

    void ParticleAffector::disable()
    {
        setEnable(false);
    }

    bool ParticleAffector::isEnable() const
    {
        return mEnable;
    }

    bool ParticleAffector::affectParticles(ParticleList &particleList, const real interval)
    {
        return mEnable;
    }

    ParticleAffector::~ParticleAffector()
    {
    }
}
